<table class="table table-bordered sku-table">
    <thead>
    <tr>
        <th class="actions-col"></th>
        <th>SKU 编号</th>

        <#list skuPropertyList as skuProperty>
          <th>${skuProperty.name}</th>
        </#list>

        <th>售价</th>
    </tr>
    </thead>
    <tbody>
    <#list skuResultList as skuValue>
      <tr>
          <td class="actions-col">
              <button type="button" class="btn btn-default js-remove">
                  移除
              </button>
          </td>
          <td>
              <input class="form-control" name="productSkuList[${skuValue_index}].code" value="${skuValue['code']}">
          </td>
        <#list skuPropertyList as skuProperty>
            <td>
                ${skuValue['${skuProperty.id}']}

                <input type="hidden" name="productSkuList[${skuValue_index}].productSkuPropertyList[${skuProperty_index}].skuProperty.id" value="${skuProperty.id}">
                <input type="hidden" name="productSkuList[${skuValue_index}].productSkuPropertyList[${skuProperty_index}].value" value="${skuValue['${skuProperty.id}']}">
             </td>
        </#list>

          <td>
              <input class="form-control price-input" name="productSkuList[${skuValue_index}].price" value="${skuValue['price']?c}">
          </td>
      </tr>
    </#list>
    </tbody>
</table>
<script>
    $('.sku-table').on('click', '.js-remove', function(){
        $(this).closest('tr').remove();
    });

</script>